﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ContacterAdd.aspx.cs" Inherits="GreatB2C.Web.Manage.CRM.Contacter.ContacterAdd" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../../../App_Themes/AdminGreenTheme/Guide.css" type="text/css" rel="stylesheet" />
        <link href="../../../App_Themes/AdminDefaultTheme/Guide.css" type="text/css" rel="stylesheet" />
    <link href="../../../App_Themes/AdminDefaultTheme/index.css" type="text/css" rel="stylesheet" />
    <link href="../../../App_Themes/AdminDefaultTheme/xtree.css" type="text/css" rel="stylesheet" />
    <link href="../../../App_Themes/AdminDefaultTheme/MasterPage.css" type="text/css"
        rel="stylesheet" />

    <script type="text/javascript" src="../../../Resource/Script/pagebase.js"></script>
</head>
<body>
    <form id="form1" runat="server">
        <div>
        <span style="height: 25px; line-height: 25px;"><span>
            <img src="../../../App_Themes/AdminDefaultTheme/Images/localGIF.gif" align="absmiddle"
                style="border-width: 0px;" />后台管理 </span><span>&gt;&gt; </span><span><a>客户关系管理</a></span><span>
                    &gt;&gt; </span><span><a>联系人管理</a></span><span>
                    &gt;&gt; </span><span><a>添加联系人</a></span></span></div>
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr align="center">
            <td id="TabTitle0" class="titlemouseover" onclick="ShowTabs(0)">
                基本信息
            </td>
            <td id="TabTitle1" class="tabtitle" onclick="ShowTabs(1)">
                联络信息
            </td>
            <td id="TabTitle2" class="tabtitle" onclick="ShowTabs(2)">
                个人信息
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
    </table>
    <table width="100%" border="0" cellpadding="5" cellspacing="1" class="border">
        <tr class="tdbg">
            <td valign="top" class="style1">
                <table id="Tabs0" cellpadding="2" cellspacing="1" style="width: 100%; background-color: white;">
                    <tr class="tdbg">
                        <td style="width: 15%; height: 27px;" align="right" class="tdbgleft">
                            对应客户：
                        </td>
                        <td style="width: 38%; height: 27px;">
                            <asp:TextBox ID="txtClientID" MaxLength="20" runat="server" 
                                onblur="CheckTrueName(this.value)"></asp:TextBox>
                        </td>
                        <td style="width: 15%; height: 27px;" align="right" class="tdbgleft">
                            上级联系人：
                        </td>
                        <td style="width: 38%; height: 27px;">
                            <asp:TextBox ID="txtParentID" MaxLength="20" runat="server" 
                                onblur="CheckTrueName(this.value)"></asp:TextBox>
                        </td>
                    </tr>
                    <tr class="tdbg">
                        <td align="right" class="tdbgleft">
                            真实姓名：
                        </td>
                        <td>
                            <asp:TextBox ID="TxtTrueName" MaxLength="20" runat="server" onblur="CheckTrueName(this.value)"></asp:TextBox>
                            <%--                            <pe:RequiredFieldValidator ID="ValrTrue" runat="server" ErrorMessage="RequiredFieldValidator"
                                ControlToValidate="TxtTrueName" Display="Dynamic">真实姓名不能为空！</pe:RequiredFieldValidator>
--%>
                            <span style="color: Red;">* </span><span id="spanTrueName" style="display: none;
                                color: Red;">真实姓名不能为空！</span>
                        </td>
                        <td align="right" class="tdbgleft">
                            称谓：
                        </td>
                        <td>
                            <asp:TextBox ID="TxtTitle" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr class="tdbg">
                        <td align="right" class="tdbgleft">
                            所属部门：
                        </td>
                        <td>
                            <asp:TextBox ID="TxtDepartment" runat="server"></asp:TextBox>
                        </td>
                        <td align="right" class="tdbgleft">
                            职位：
                        </td>
                        <td>
                            <asp:TextBox ID="TxtPosition" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr class="tdbg">
                        <td align="right" class="tdbgleft">
                            负责业务：
                        </td>
                        <td>
                            <asp:TextBox ID="TxtOperation" runat="server"></asp:TextBox>
                        </td>
                        <td align="right" class="tdbgleft">
                            类别：
                        </td>
                        <td>
                            <asp:RadioButtonList ID="RadlUserType" runat="server" RepeatDirection="Horizontal">
                                <asp:ListItem Value="1" Selected="True">主联系人</asp:ListItem>
                                <asp:ListItem Value="2">其它联系人</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tr class="tdbg">
                        <td colspan="2">
                        </td>
                        <td colspan="2">
                            <span runat="server" visible="false" id="tips" style="color: blue">1.企业客户的主联系人有且只有一个，不能将主联系人直接修改为其他联系人。<br />
                                2.将客户的其他联系人设为主联系人，客户原主联系人会自动改为其他联系人。</span>
                        </td>
                    </tr>
                </table>
                <table id="Tabs1" cellpadding="2" cellspacing="1" style="width: 100%; background-color: white;
                    display: block">
                    <tr class="tdbg">
                        <td style="width: 15%" align="right" class="tdbgleft">
                            <asp:Localize ID="Localize33" Text="国家/地区：" runat="server" />
                        </td>
                        <td style="width: 38%">
                            <asp:DropDownList ID="DropCountry" runat="server" DataTextField="Country" DataValueField="Country"
                        AutoPostBack="true" OnSelectedIndexChanged="DropCountry_SelectedIndexChanged">
                    </asp:DropDownList>
                        </td>
                        <td style="width: 15%" align="right" class="tdbgleft">
                            <asp:Localize ID="Localize34" Text="省/市/自治区：" runat="server" />
                        </td>
                        <td style="width: 38%">
                            <asp:DropDownList ID="DropProvince" DataTextField="Province" DataValueField="Province"
                        AutoPostBack="true" runat="server" OnSelectedIndexChanged="DropProvince_SelectedIndexChanged">
                    </asp:DropDownList>
                        </td>
                    </tr>
                    <tr class="tdbg">
                        <td style="width: 15%" align="right" class="tdbgleft">
                            <asp:Localize ID="Localize35" Text="市/县/区/旗：" runat="server" />
                        </td>
                        <td style="width: 38%">
                            <asp:DropDownList ID="DropCity" DataTextField="City" DataValueField="City"
                        runat="server">
                    </asp:DropDownList>
                        </td>
                        <td style="width: 15%" align="right" class="tdbgleft">
                            <asp:Localize ID="Localize36" Text="联系地址：" runat="server" />
                        </td>
                        <td style="width: 38%">
                            <asp:TextBox ID="TxtAddress" Width="300px" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                                        <tr class="tdbg">
                        <td style="width: 15%" align="right" class="tdbgleft">
                            <asp:Localize ID="Localize37" Text="邮政编码：" runat="server" />
                        </td>
                        <td style="width: 38%">
                            <asp:TextBox ID="TxtZipCode" runat="server"></asp:TextBox>
                        </td>
                        <td style="width: 15%" align="right" class="tdbgleft">
                            
                        </td>
                        <td style="width: 38%">
                            
                        </td>
                    </tr>
                    <tr class="tdbg">
                        <td style="width: 15%" align="right" class="tdbgleft">
                            <asp:Localize ID="Localize4" Text="办公电话：" runat="server" />
                        </td>
                        <td style="width: 38%">
                            <asp:TextBox ID="TxtOfficePhone" runat="server"></asp:TextBox>
                            <asp:CustomValidator ID="VOfficePhone" runat="server" ControlToValidate="TxtOfficePhone"
                                ClientValidationFunction="VarAjaxFun" ErrorMessage="办公电话已经存在，请勿重复添加！" SetFocusOnError="true">
                            </asp:CustomValidator>
                        </td>
                        <td style="width: 15%" align="right" class="tdbgleft">
                            <asp:Localize ID="Localize6" Text="住宅电话：" runat="server" />
                        </td>
                        <td style="width: 38%">
                            <asp:TextBox ID="TxtHomePhone" runat="server"></asp:TextBox>
                            <asp:CustomValidator ID="VHomePhone" runat="server" ControlToValidate="TxtHomePhone"
                                ClientValidationFunction="VarAjaxFun" ErrorMessage="住宅电话已经存在，请勿重复添加！" SetFocusOnError="true">
                            </asp:CustomValidator>
                        </td>
                    </tr>
                    <tr class="tdbg">
                        <td style="width: 15%" align="right" class="tdbgleft">
                            <asp:Localize ID="Localize8" Text="移动电话：" runat="server" />
                        </td>
                        <td>
                            <asp:TextBox ID="TxtMobile" runat="server"></asp:TextBox>
                            <asp:CustomValidator ID="VMobile" runat="server" ControlToValidate="TxtMobile" ClientValidationFunction="VarAjaxFun"
                                ErrorMessage="移动电话已经存在，请勿重复添加！" SetFocusOnError="true">
                            </asp:CustomValidator>
                        </td>
                        <td style="width: 15%" align="right" class="tdbgleft">
                            <asp:Localize ID="Localize10" Text="传真号码：" runat="server" />
                        </td>
                        <td>
                            <asp:TextBox ID="TxtFax" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr class="tdbg">
                        <td style="width: 15%" align="right" class="tdbgleft">
                            <asp:Localize ID="Localize11" Text="小灵通：" runat="server" />
                        </td>
                        <td>
                            <asp:TextBox ID="TxtPHS" runat="server"></asp:TextBox>
                        </td>
                        <td class="tdbgleft" align="right">
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr class="tdbg">
                        <td style="width: 15%" align="right" class="tdbgleft">
                            <asp:Localize ID="Localize12" Text="个人主页：" runat="server" />
                        </td>
                        <td>
                            <asp:TextBox ID="TxtHomepage" runat="server"></asp:TextBox>
                            <%--                <asp:RegularExpressionValidator ID="regPersonHomePage" runat="server" ControlToValidate="TxtHomepage" Display="Dynamic" 
                                ErrorMessage="填写的URL地址格式不正确！" 
                                ValidationExpression="http(s)?://([\w-]+\.)+[\w-]+(/[\w- ./?%&amp;=]*)?"></asp:RegularExpressionValidator>--%>
                            <asp:CustomValidator ID="VHomepage" runat="server" ControlToValidate="TxtHomepage"
                                ClientValidationFunction="VarAjaxFun" ErrorMessage="主页已经存在，请勿重复添加！" SetFocusOnError="true">
                            </asp:CustomValidator>
                        </td>
                        <td class="tdbgleft" align="right">
                            <asp:Localize ID="Localize14" Text=" Email地址：" runat="server" />
                        </td>
                        <td>
                            <asp:TextBox ID="TxtEmail" runat="server"></asp:TextBox>
                            <asp:CustomValidator ID="VEmail" runat="server" ControlToValidate="TxtEmail" ClientValidationFunction="VarAjaxFun"
                                ErrorMessage="Email地址已经存在，请勿重复添加！" SetFocusOnError="true">
                            </asp:CustomValidator>
                        </td>
                    </tr>
                    <tr class="tdbg">
                        <td style="width: 15%" align="right" class="tdbgleft">
                            <asp:Localize ID="Localize15" Text="QQ号码：" runat="server" />
                        </td>
                        <td>
                            <asp:TextBox ID="TxtQQ" runat="server"></asp:TextBox>
                            <asp:CustomValidator ID="VxQQ" runat="server" ControlToValidate="TxtQQ" ClientValidationFunction="VarAjaxFun"
                                ErrorMessage="QQ号码已经存在，请勿重复添加！" SetFocusOnError="true">
                            </asp:CustomValidator>
                        </td>
                        <td class="tdbgleft" align="right">
                            <asp:Localize ID="Localize17" Text="MSN帐号：" runat="server" />
                        </td>
                        <td>
                            <asp:TextBox ID="TxtMSN" runat="server"></asp:TextBox>
                            <asp:CustomValidator ID="VMSN" runat="server" ControlToValidate="TxtMSN" ClientValidationFunction="VarAjaxFun"
                                ErrorMessage="Msn号码已经存在，请勿重复添加！" SetFocusOnError="true">
                            </asp:CustomValidator>
                        </td>
                    </tr>
                    <tr class="tdbg">
                        <td style="width: 15%" align="right" class="tdbgleft">
                            <asp:Localize ID="Localize19" Text="ICQ号码：" runat="server" />
                        </td>
                        <td>
                            <asp:TextBox ID="TxtICQ" runat="server"></asp:TextBox>
                        </td>
                        <td style="width: 15%" align="right" class="tdbgleft">
                            <asp:Localize ID="Localize20" Text="雅虎通帐号：" runat="server" />
                        </td>
                        <td>
                            <asp:TextBox ID="TxtYahoo" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr class="tdbg">
                        <td style="width: 15%" align="right" class="tdbgleft">
                            <asp:Localize ID="Localize21" Text="UC帐号：" runat="server" />
                        </td>
                        <td>
                            <asp:TextBox ID="TxtUC" runat="server"></asp:TextBox>
                        </td>
                        <td style="width: 15%" align="right" class="tdbgleft">
                            <asp:Localize ID="Localize22" Text="Aim帐号：" runat="server" />
                        </td>
                        <td>
                            <asp:TextBox ID="TxtAim" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                </table>
                <table id="Tabs2" cellpadding="2" cellspacing="1" style="width: 100%; background-color: white;
                    display: block">
                    <tr class="tdbg">
                        <td style="width: 15%" align="right" class="tdbgleft">
                            <asp:Localize ID="Localize1" Text="出生日期：" runat="server" />
                        </td>
                        <td style="width: 38%">
                            &nbsp;
                        </td>
                        <td style="width: 15%" align="right" class="tdbgleft">
                            &nbsp;
                        </td>
                        <td style="width: 38%">
                            <asp:TextBox ID="TxtIDCard" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr class="tdbg">
                        <td class="tdbgleft" align="right">
                            <asp:Localize ID="Localize5" Text="籍贯：" runat="server" />
                        </td>
                        <td>
                            <asp:TextBox ID="TxtNativePlace" runat="server"></asp:TextBox>
                        </td>
                        <td class="tdbgleft" align="right">
                            <asp:Localize ID="Localize7" Text="民族：" runat="server" />
                        </td>
                        <td>
                            <asp:TextBox ID="TxtNation" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr class="tdbg">
                        <td class="tdbgleft" align="right">
                            <asp:Localize ID="Localize9" Text="性别：" runat="server" />
                        </td>
                        <td>
                            <asp:RadioButtonList ID="RadlSex" runat="server" RepeatDirection="Horizontal">
                                <asp:ListItem Selected="True" Value="0" Text="保密 "></asp:ListItem>
                                <asp:ListItem Value="1" Text="男 "></asp:ListItem>
                                <asp:ListItem Value="2" Text="女 "></asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                        <td class="tdbgleft" align="right">
                            <asp:Localize ID="Localize13" Text="婚姻状况：" runat="server" />
                        </td>
                        <td>
                            <asp:RadioButtonList ID="RadlMarriage" runat="server" RepeatDirection="Horizontal">
                                <asp:ListItem Selected="True" Value="0" Text="保密 "></asp:ListItem>
                                <asp:ListItem Value="1" Text="未婚 "></asp:ListItem>
                                <asp:ListItem Value="2" Text="已婚 "></asp:ListItem>
                                <asp:ListItem Value="3" Text="离异 "></asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tr class="tdbg">
                        <td class="tdbgleft" align="right">
                            <asp:Localize ID="Localize16" Text="学历：" runat="server" />
                        </td>
                        <td>
                            <asp:DropDownList ID="DropEducation" DataTextField="DataTextField" DataValueField="DataValueField"
                                runat="server">
                            </asp:DropDownList>
                        </td>
                        <td class="tdbgleft" align="right">
                            <asp:Localize ID="Localize18" Text="毕业学校：" runat="server" />
                        </td>
                        <td>
                            <asp:TextBox ID="TxtGraduateFrom" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr class="tdbg">
                        <td class="tdbgleft" align="right">
                            <asp:Localize ID="Localize23" Text="生活爱好：" runat="server" />
                        </td>
                        <td>
                            <asp:TextBox ID="TxtInterestsOfLife" runat="server"></asp:TextBox>
                        </td>
                        <td class="tdbgleft" align="right">
                            <asp:Localize ID="Localize24" Text="文化爱好：" runat="server" />
                        </td>
                        <td>
                            <asp:TextBox ID="TxtInterestsOfCulture" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr class="tdbg">
                        <td class="tdbgleft" align="right">
                            <asp:Localize ID="Localize25" Text="娱乐休闲爱好：" runat="server" />
                        </td>
                        <td>
                            <asp:TextBox ID="TxtInterestsOfAmusement" runat="server"></asp:TextBox>
                        </td>
                        <td class="tdbgleft" align="right">
                            <asp:Localize ID="Localize26" Text="体育爱好：" runat="server" />
                        </td>
                        <td>
                            <asp:TextBox ID="TxtInterestsOfSport" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr class="tdbg">
                        <td class="style1" align="right">
                            <asp:Localize ID="Localize27" Text="其他爱好：" runat="server" />
                        </td>
                        <td>
                            <asp:TextBox ID="TxtInterestsOfOther" runat="server"></asp:TextBox>
                        </td>
                        <td class="tdbgleft" align="right">
                            <asp:Localize ID="Localize28" Text="月 收 入：" runat="server" />
                        </td>
                        <td>
                            <asp:DropDownList ID="DropIncome" DataTextField="DataTextField" DataValueField="DataValueField"
                                runat="server">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr class="tdbg">
                        <td class="style1" align="right">
                            <asp:Localize ID="Localize29" Text="家庭情况：" runat="server" />
                        </td>
                        <td colspan="3">
                            <asp:TextBox ID="TxtFamily" runat="server" TextMode="MultiLine" Height="74px" Width="400"></asp:TextBox>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <br />
    <div style="text-align: center">
        <asp:Button ID="BtnSave" runat="server" Text="保存联系人信息" OnClick="BtnSave_Click" OnClientClick=" return CheckIsValue()" />
    </div>
    </form>
</body>
</html>
